<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="mainMenu" />
<meta name="nav" content="0" />
<meta name="acc" content="0" />
<title>用户信息修改</title>
<!--  通用情况下 不引入 js css  表单验证  js 放置到页面中 -->
<script>
	$(document).ready(
					function() {
						//聚焦第一个输入框
						$("#userName").focus();
						//为inputForm注册validate函数
						$("#inputForm").validate(
										{
											rules : {
												userName : {
													required : true,
													remote : "user!checkLoginName.action?oldLoginName="
															+ encodeURIComponent('${userName}')
												},
												name : "required",
												password : {
													required : true,
													minlength : 3
												},
												passwordConfirm : {
													equalTo : "#password"
												},
												email : "email",
												checkedRoleIds : "required"
											},
											messages : {
												userName : {
													remote : "<font color='red'>用户登录名已存在</font>"
												},
												passwordConfirm : {
													equalTo : "<font color='red'>输入与上面相同的密码</font>"
												}
											}
										});
					});

</script>
</head>

<body>
<!-- 直接主体内容开始  无需要涉及页面布局的  div 等   注意各页面中的Id 保持一致  页面中尽量用 el表达式 与html标签->
<!--   form定义 类似如下:  注意各页面中的Id 保持一致  class="inputForm"-->

<form id="inputForm" action="user!saveUpdate.action" method="post"
	class="yform"><input type="hidden" name="id" value="${id}" />
	<div id="caption" class="user_update"><h6>用户信息修改</h6></div>
<table class="noborder">
	<tr   >
		<td>用&nbsp;户&nbsp;名:</td>
		<td colspan="3">${userName}</td>
	</tr>
	<tr   >
		<td>邮&nbsp;&nbsp;&nbsp;&nbsp;箱:</td>
		<td colspan="3">${email}</td>
	</tr>
	<tr   >
		<td>所属单位:</td>
		<td colspan="3">${organization.orgName}</td>
	</tr>
	<tr class="type-check">
		<td>角&nbsp;&nbsp;&nbsp;&nbsp;色:</td>
		<td colspan="3">${RoleNames}</td>
	</tr>
	<tr   >
		<td>姓&nbsp;&nbsp;名&nbsp;:</td>
		<td><input type="text" name="name" id="name" value="${name}" />
		</td>
		<td>性&nbsp;&nbsp;别&nbsp;:</td>
		<td>
			<pt:code category="1001" name="sexv" toScope="request" ></pt:code>
			<s:select name="sex" list="#request.sexv" listKey="value" listValue="label"></s:select>
		</td>
	</tr>
	<tr   >
		<td>年&nbsp;&nbsp;龄&nbsp;:</td>
		<td><input type="text" name="age" id="age" value="${age}" /></td>
		<td>职&nbsp;&nbsp;称&nbsp;:</td>
		<td><input type="text" name="dutyName" id="dutyName"
			value="${dutyName}" /></td>
	</tr>

	<tr   >
		<td>学&nbsp;&nbsp;历&nbsp;:</td>
		<td><pt:code category="1002" name="degree" default="${degree}"></pt:code>
		</td>
		<td>专&nbsp;&nbsp;业&nbsp;:</td>
		<td><input type="text" name="specialty" id="specialty"
			value="${specialty}" /></td>
	</tr>

	<tr   >
		<td>固定电话&nbsp;:</td>
		<td><input type="text" name="phone" id="phone" value="${phone}" /></td>
		<td>手&nbsp;&nbsp;机&nbsp;:</td>
		<td><input type="text" name="mobilePhone" id="mobilePhone"
			value="${mobilePhone}" /></td>
	</tr>

	<tr   >
		<td>备注&nbsp;:</td>
		<td colspan="3"><textarea name="remark" rows="5" cols="60">${remark}</textarea></td>
	</tr>
</table>
		<div class="type-button"><input   type="submit"
			class="submit" value="提交" /></div>
</form>
</body>
</html>
